import { useSelector } from 'react-redux';
import { RootState } from '@/store';

// 获取登录的用户信息
export const useUserInfo = () => {
  const { userInfo } = useSelector((state: RootState) => state.storeUser);
  return userInfo;
};
